







<div class="x-body">

    <xblock>
        <span class="x-right" style="line-height:40px">共有数据：{$list.count} 条</span>
    </xblock>


    <table class="layui-table x-admin">
        <thead>
        <tr>

            <th>序号</th>
            <th>单号</th>
            <th>类型</th>
            <th>用户名</th>
            <th>彩票名称</th>
            <th>期号</th>
            <th>玩法</th>
            <th>注数</th>
            <th>奖金/赔率</th>
            <th>金额</th>
            <th>中奖金额</th>
            <th>号码</th>
            <th>开奖号码</th>
            <th>状态</th>
            <th>下注时间</th>
            <th>是否输赢</th>
            <th>输赢金额</th>
<!--            <th>操作</th>-->
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>

            <td>{$k}</td>
            <td>{$vo.bets.trade_no}</td>
            <td>{if condition='$vo.entrust_count gt 0'}赌王委托下注{else/}用户下注{/if}</td>
            <td>{$vo.username}</td>
            <td>{$vo.bets.lottery.name}</td>
            <td>{$vo.bets.round}</td>
            <td>{$vo.bets.play.name}</td>
            <td>{$vo.bets.injection_number}</td>
            <td>{$vo.bets.odds}</td>
            <td>{if condition='$vo.entrust_count gt 0'}{$vo.bets.money/$vo.entrust_count}{else/}{$vo.bets.money}{/if}</td>
            <td>{if condition='$vo.entrust_count gt 0'}{$vo.bets.reward_money/$vo.entrust_count}{else/}{$vo.bets.reward_money}{/if}</td>
            <td>{$vo.bets.number}</td>
            <td>{$vo.bets.reward_number}</td>
            <td>{$vo.bets.state_html}</td>
            <td>{$vo.create_time}</td>
            <td>{if condition='$vo.profit>0'}赢{else/}输{/if}</td>
            <td>{$vo.profit}</td>

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="16" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>


    <div class="page">
        {notempty name='list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('form', function(){
        form = layui.form;

    });
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });
</script>

</body>

</html>


